package com.itany.service.impl;

import com.itany.entity.User;
import com.itany.service.UserService;

/**
 * Author：汤小洋
 * Date：2019-12-16 10:37
 * Description：<描述>
 */
// @Service
public class UserServiceImpl implements UserService {
    @Override
    public User findById(Integer id) {
        System.out.println("UserServiceImpl.findById.........................");

        // try {
        //     Thread.sleep(3000);
        // } catch (InterruptedException e) {
        //     e.printStackTrace();
        // }

        User user = new User();
        user.setId(id);
        user.setUsername("jack");
        user.setPassword("123");
        return user;
    }
}
